import moment from "moment"

let myHandler = async function (event, context, callback, logger) {
  const randomNumber = Math.random()
  const formatDate = moment().format("yyyy-MM-DD HH:mm:ss")

  callback({
    code: 0,
    desc: `${randomNumber}`,
    now: formatDate
  });
};

export { myHandler };